﻿#ifndef BLOWAIRPINS_H
#define BLOWAIRPINS_H

#include <QObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QMap>

/*
 * 吹气泵对应的实际引脚跟物理引脚
*/
class BlowairPins : public QObject
{
    Q_OBJECT
public:
    explicit BlowairPins(QObject *parent = nullptr);
    virtual ~BlowairPins();

    void initPin();
    static BlowairPins * gestance();

    int getRealPin(int userPin );
    int getUserPin(int realPin );

    QList<int> keyPins();

signals:

public:
    static BlowairPins  * m_blowairPins;

    QMap<int ,int> m_pinMap;
    QMap<int ,int> m_pinUserMap;
};

#endif // BLOWAIRPINS_H
